package com.ccys.db.entity;

import com.ccys.db.rely.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import javax.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
* Created by Mybatis Generator on 2023/12/25
*/
@Data
@ApiModel("问诊配送地址(location based) ")
@Table(name = "tbl_booking_delivery_location")
@NoArgsConstructor
@AllArgsConstructor
public class TblBookingDeliveryLocation extends BaseEntity {
    @Id

    @Column(name = "booking_id")
    private String bookingId;

    @Column(name = "first_name")
    private String firstName;

    @Column(name = "last_name")
    private String lastName;

    private String phone;

    @Column(name = "postal_code")
    private String postalCode;

    private String address;

    @Column(name = "booking_type")
    private Integer bookingType;

    /**
     * delivery_country_location的id
     */
    @Column(name = "dcl_id")
    @ApiModelProperty("delivery_country_location的id")
    private String dclId;

    @Column(name = "mem_delivery_address_id")
    private String memDeliveryAddressId;

    @Column(name = "country_id")
    private String countryId;

    @Column(name = "detail_address")
    private String detailAddress;

    @Column(name = "phone_country_id")
    private Integer phoneCountryId;

    /**
     * Todo 如何计算
     */
    @ApiModelProperty("Todo 如何计算")
    private BigDecimal distance;

    private Integer status;

    private String city;

    private String district;

    @Column(name = "other_division")
    private String otherDivision;

    @Column(name = "min_value")
    private BigDecimal minValue;

    @Column(name = "max_value")
    private BigDecimal maxValue;

    /**
     * 时间类型:1hours 2:days
     */
    @Column(name = "unit_type")
    @ApiModelProperty("时间类型:1hours 2:days")
    private Integer unitType;

    @Column(name = "can_deliver")
    private Integer canDeliver;

    @Column(name = "floor_number")
    private String floorNumber;
}